package com.labor_management_system.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * 
 * @TableName employee
 */
@TableName(value ="employee")
@Data
//员工
public class Employee implements Serializable {
    @TableId
    @JsonProperty("employeeId")
    private String employeeId;
    @JsonProperty("employeeName")
    private String employeeName;
    @JsonProperty("teamId")
    private String teamId;
    @JsonProperty("enterprisesId")
    private String enterprisesId;
    @JsonProperty("sex")
    private String sex;
    @JsonProperty("identityCard")
    private String identityCard;
    @JsonProperty("age")
    private Integer age;
    @JsonProperty("remunerationMethod")
    private Integer remunerationMethod;
    @JsonProperty("phone")
    private String phone;
    @JsonProperty("wageScale")
    private Integer wageScale;
    @JsonProperty("payrollCard")
    private String payrollCard;
    @JsonProperty("bank")
    private String bank;
    @JsonProperty("attendanceDaysCmonth")
    private Integer attendanceDaysCmonth;
    @JsonProperty("salaryPayableTmonth")
    private Integer salaryPayableTmonth;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Employee other = (Employee) that;
        return (this.getEmployeeId() == null ? other.getEmployeeId() == null : this.getEmployeeId().equals(other.getEmployeeId()))
            && (this.getEmployeeName() == null ? other.getEmployeeName() == null : this.getEmployeeName().equals(other.getEmployeeName()))
            && (this.getTeamId() == null ? other.getTeamId() == null : this.getTeamId().equals(other.getTeamId()))
            && (this.getEnterprisesId() == null ? other.getEnterprisesId() == null : this.getEnterprisesId().equals(other.getEnterprisesId()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getIdentityCard() == null ? other.getIdentityCard() == null : this.getIdentityCard().equals(other.getIdentityCard()))
            && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
            && (this.getRemunerationMethod() == null ? other.getRemunerationMethod() == null : this.getRemunerationMethod().equals(other.getRemunerationMethod()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getWageScale() == null ? other.getWageScale() == null : this.getWageScale().equals(other.getWageScale()))
            && (this.getPayrollCard() == null ? other.getPayrollCard() == null : this.getPayrollCard().equals(other.getPayrollCard()))
            && (this.getBank() == null ? other.getBank() == null : this.getBank().equals(other.getBank()))
            && (this.getAttendanceDaysCmonth() == null ? other.getAttendanceDaysCmonth() == null : this.getAttendanceDaysCmonth().equals(other.getAttendanceDaysCmonth()))
            && (this.getSalaryPayableTmonth() == null ? other.getSalaryPayableTmonth() == null : this.getSalaryPayableTmonth().equals(other.getSalaryPayableTmonth()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getEmployeeId() == null) ? 0 : getEmployeeId().hashCode());
        result = prime * result + ((getEmployeeName() == null) ? 0 : getEmployeeName().hashCode());
        result = prime * result + ((getTeamId() == null) ? 0 : getTeamId().hashCode());
        result = prime * result + ((getEnterprisesId() == null) ? 0 : getEnterprisesId().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getIdentityCard() == null) ? 0 : getIdentityCard().hashCode());
        result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
        result = prime * result + ((getRemunerationMethod() == null) ? 0 : getRemunerationMethod().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getWageScale() == null) ? 0 : getWageScale().hashCode());
        result = prime * result + ((getPayrollCard() == null) ? 0 : getPayrollCard().hashCode());
        result = prime * result + ((getBank() == null) ? 0 : getBank().hashCode());
        result = prime * result + ((getAttendanceDaysCmonth() == null) ? 0 : getAttendanceDaysCmonth().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", employeeId=").append(employeeId);
        sb.append(", employeeName=").append(employeeName);
        sb.append(", teamId=").append(teamId);
        sb.append(", enterprisesId=").append(enterprisesId);
        sb.append(", sex=").append(sex);
        sb.append(", identityCard=").append(identityCard);
        sb.append(", age=").append(age);
        sb.append(", remunerationMethod=").append(remunerationMethod);
        sb.append(", phone=").append(phone);
        sb.append(", wageScale=").append(wageScale);
        sb.append(", payrollCard=").append(payrollCard);
        sb.append(", bank=").append(bank);
        sb.append(", attendanceDaysCmonth=").append(attendanceDaysCmonth);
        sb.append(", salaryPayableTmonth=").append(salaryPayableTmonth);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}